package com.smart.service.util.seteA;

import com.smart.service.util.UtilCard;


public class CardValidator7AFactory {

	
	public static CardValidator7A makeCardValidator(String cardType){
		if(UtilCard.VISA.equals(cardType)){
			return new ValidatorVisa();
		}
		if(UtilCard.MASTERCARD.equals(cardType)){
			return new ValidatorMastercard();
		}
		if(UtilCard.AMEX.equals(cardType)){
			return new ValidatorAmex();
		}
		if(UtilCard.DINERS.equals(cardType)){
			return new ValidatorDiners();
		}
		
		return new ValidatorSmart();
		
		
	}
	
}
